/**
 * @(#) CongMoneyVO.as
 *
 * @date		2011. 03. 19.
 * @version		1.0
 * @author		bgh
 * @description	메인 리스트  Value Object
 *
 */
package com.skt.common_hr.mssaward.model.vo
{
	import com.skt.common_hr.common.Variables;

	[Bindable]
	public class mainListVO
	{
		public var GWAREKEY:String;	//Groupware 전자결재 Key          
		public var WSTATUS:String;	//결재진행상태                    
		public var WSTATX:String;	//상태 TEXT                                                
		public var PERNR:String;	//포상대상자                      
		public var ENAME:String;	//사원 또는 지원자의 포맷된 이름  
		public var ORGTX:String;	//부서명(상위조직명 포함)         
                          
		public var AWTXT:String;	//포상내용                        
		public var RDAY:String;		//휴가일수                        
		public var UDAY:String;		//사용일수
		public var PSTATUS:String;	//PA 처리 유형

		public var SDATE:Date;		//신청일		                        
		public var AWDDT:Date;		//포상일		
		public var RBEG:Date;		//사용가능시작일                  
		public var REND:Date;		//사용가능종료일		 
		
		public var SDATE_JSON:String;		//신청일		                        
		public var AWDDT_JSON:String;		//포상일		
		public var RBEG_JSON:String;		//사용가능시작일                  
		public var REND_JSON:String;		//사용가능종료일		
		
		public var SDATE_TX:String;		//신청일		                        
		public var AWDDT_TX:String;		//포상일		
		public var RBEG_TX:String;		//사용가능시작일                  
		public var REND_TX:String;		//사용가능종료일		
		
		public function get PERNR_CHECK():String {
			return parseInt(PERNR).toString();
		}	
		
		public function get WSTATUS_CHECK():Boolean {
			if(Variables.company =="SAC") {
				if(WSTATUS=="1") {
					return true;	
				} else {
					return false;
				}						
			} else {
				if(WSTATUS=="1" || WSTATUS=="4") {
					return true;	
				} else {
					return false;
				}				
			}

		}		
	}
}